﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Formularios/Principal.Master" AutoEventWireup="true"
    CodeBehind="CambioClaveSID.aspx.cs" Inherits="wRegPadron.Formularios.CambioClaveSID" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label runat="server" ID="lblTitulo"></asp:Label>
    <p>
        <asp:HiddenField ID="hfIdOficina" runat="server" />
        <asp:HiddenField ID="hfUsuario" runat="server" />
        <small>
            <asp:Label runat="server" ID="lblDescripcion"></asp:Label></small></p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:HiddenField runat="server" ID="hfIdSeleccionado"/>
    <div class="alert alert-block alert-info" style="text-align: left;">
        <h4>
            Búsqueda de usuario:</h4>        
    </div>
    <div class="dropdown clearfix" style="width: 600px">
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block;
            position: static; margin-bottom: 5px; width: 600px; padding-top: 20px; padding-bottom:10px;">
            <div class="form-horizontal" style="width: 450px">
                <div class="control-group">
                    <label class="control-label">
                        <asp:Label runat="server" ID="lbl1"></asp:Label>
                    </label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="txtNombre"></asp:TextBox>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        <asp:Label runat="server" ID="lbl2"></asp:Label>
                    </label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="txtPaterno"></asp:TextBox>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        <asp:Label runat="server" ID="lbl3"></asp:Label>
                    </label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="txtMaterno"></asp:TextBox>
                    </div>
                </div>
                <div class="controls">
                    <asp:LinkButton runat="server" CssClass="btn" data-loading-text="Cargando ..." ID="btnBuscar" OnClick="btnBuscar_Click" CausesValidation="false"><i class="icon-search"></i> Buscar</asp:LinkButton>
                </div>
            </div>
        </ul>
    </div>
    <br />
    <p> <asp:Label runat="server" ID="lblErrorBusqueda" CssClass="text-error"></asp:Label>
    <asp:Label runat="server" ID="lblEncontrado" CssClass="text-success"></asp:Label></p>
    <asp:Repeater runat="server" ID="rUsuarios" 
        onitemcommand="rUsuarios_ItemCommand">
    <HeaderTemplate>    
    <table class="table table-bordered table-hover" style="width:530px;">
        <thead>
            <tr class="success">
                <th>Usuario</th>
                <th>Nombre completo</th>
                <th>Seleccionar</th>
            </tr>
        </thead>
        <tbody>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td style="width:130px;"><asp:Label runat="server" ID="lblUsuario" Text='<%#DataBinder.Eval(Container.DataItem, "Usuario")%>'></asp:Label></td>        
            <td style="width:300px;"><asp:Label runat="server" ID="lblNombreCompleto" Text='<%#DataBinder.Eval(Container.DataItem, "NombrePersona")%>'></asp:Label></td>
            <td style="width:100px;" align="center"><asp:HiddenField runat="server" ID="hfIdPersona" Value='<%#DataBinder.Eval(Container.DataItem, "IDPersona")%>'/> <asp:LinkButton runat="server" CommandName="Seleccionar" ID="btnSeleccionar" CausesValidation="false" CssClass="btn btn-info"><i class="icon-ok icon-white"></i>&nbsp;</asp:LinkButton></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
    </tbody>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    <div class="alert alert-block alert-info" style="text-align: left;">
        <h4>
            Nueva contraseña:</h4>
    </div>
    <div class="dropdown clearfix" style="width: 600px;">
        <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block;
            position: static; margin-bottom: 5px; width: 600px; padding-top: 20px; padding-bottom:10px;">
            <div class="form-horizontal" style="width: 450px;">                
                <div class="control-group">
                    <label class="control-label">
                        <asp:Label runat="server" ID="lbl5"></asp:Label>
                    </label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="txtClaveNueva" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Ingrese la nueva contraseña" CssClass="text-error" ControlToValidate="txtClaveNueva"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        <asp:Label runat="server" ID="lbl6"></asp:Label>
                    </label>
                    <div class="controls">
                        <asp:TextBox runat="server" ID="txtConfirmacion" TextMode="Password"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Esta contraseña debe ser identica a la anterior" ControlToValidate="txtConfirmacion" ControlToCompare="txtClaveNueva" CssClass="text-error"></asp:CompareValidator>

                    </div>
                </div>
                <div class="controls">
                    <asp:LinkButton runat="server" ID="btnGuardar" CssClass="btn" 
                        onclick="btnGuardar_Click"><i class=" icon-refresh"></i> Guardar</asp:LinkButton>
                </div>
                <br />
                <asp:Label runat="server" ID="lblErrorActualizacion" CssClass="text-error"></asp:Label>
                <asp:Label runat="server" ID="lblActualizacionCorrecta" CssClass="text-success"></asp:Label>
            </div>
        </ul>
    </div>
</asp:Content>
